package main

import (
	"gateway"
	"gateway/admin"
	"gateway/http"
)

var channel chan string

func main() {
	config := gateway.Config{}
	config.Http11Port = 8070
	channel = make(chan string)

	go StartHttp11(config)

	go admin.NewAdminServer().Start()

	//go StartHttp2()

	//channel <- gateway.DEFAULT_PROTOCOL
	select {}

}

func StartHttp11(config gateway.Config) {
	server := http.GetHttp11Server(config)
	server.Start()
}

func StartHttp2() {

}

func StartAdminServer() {

}
